package com.tianyu.inspection.entity.model;

import com.alibaba.fastjson2.JSONArray;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**********************************
 * @Author YSW
 * @Description 请求实体模型
 * @Date 2021/2/25 - 17:18
 **********************************/

@Data
public class DangerQueryMo implements Serializable {
    private Integer pageNum;
    private Integer pageSize;
    private Integer startIndex;
    private Integer endIndex;
    private String descParams;
    private String ascParams;
    private Integer id;
    private Double lng;
    private Double lat;
    private String labelImage;
    private Integer status;
    private String remarks;
    private String flyTaskName;
    private Integer dangerTypeId;
    private Integer flyTaskId;
    private Integer projectId;
    private Date createTime;
    private JSONArray multiStatus;
    private JSONArray dangerIds;
    private Integer inspectorId;

    public void setMultiStatus(String multiStatus) {
        try {
            this.multiStatus = JSONArray.parseArray(multiStatus);
        } catch (Exception e) {
            this.multiStatus = null;
        }
    }

    public void setDangerIds(String dangerIds) {
        try {
            this.dangerIds = JSONArray.parseArray(dangerIds);
        } catch (Exception e) {
            this.multiStatus = null;
        }
    }
}